﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="staffmodify.aspx.cs" Inherits="TPLOAWebClient.staffmodify" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            font-weight: 700;
        }
        .style3
        {
            font-weight: normal;
        }
        .style4
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <asp:Button ID="profileBtn0" runat="server" Font-Bold="False" OnClick="profileBtn_Click"
                Text="Profile" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="viewloaBtn" runat="server" Font-Bold="False" OnClick="viewloaBtn_Click"
                Text="View LOA Status" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="submitloaBtn" runat="server" Font-Bold="False" OnClick="submitloaBtn_Click"
                Text="Submit LOA" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="faqBtn" runat="server" Font-Bold="False" OnClick="faqBtn_Click" Text="FAQ"
                CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="otherservicesBtn" runat="server" Font-Bold="False" OnClick="otherservicesBtn_Click"
                Text="Other Services" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="LogoutBtn" runat="server" Font-Bold="False" OnClick="LogoutBtn_Click"
                Text="Logout" CssClass="navbtnCSS" CausesValidation="False" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    Update LOA
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <ContentTemplate>
            Admin No:<asp:Label ID="adminnoLbl" runat="server"></asp:Label>
            <table class="style1">
                <tr>
                    <td class="style4">
                        <strong>Date Reviewed </strong>
                    </td>
                    <td class="style4">
                        <asp:Label ID="datereviewedLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>LOAID </strong>
                    </td>
                    <td>
                        <asp:Label ID="loaidLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Date Submitted </strong>
                    </td>
                    <td>
                        <asp:Label ID="datesubmitLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>From* </strong>
                    </td>
                    <td>
                        <asp:Label ID="datefromLbl" runat="server"></asp:Label>
                        &nbsp;(Date)
                        <asp:Label ID="timefromLbl" runat="server"></asp:Label>
                        &nbsp;(Time)
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <strong>To* </strong>
                    </td>
                    <td>
                        <asp:Label ID="datetoLbl" runat="server"></asp:Label>
                        &nbsp;(Date)
                        <asp:Label ID="timetoLbl" runat="server"></asp:Label>
                        &nbsp;(Time)
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Reason(s)*
                    </td>
                    <td>
                        <asp:Label ID="reasonLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Graded Assignment(s)*
                    </td>
                    <td>
                        <asp:Label ID="gradedassignmentLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Graded Assignment Details<br /> <span class="style3">*Please include Subject 
                        Name and Lecturer</span>
                    </td>
                    <td>
                        <asp:Label ID="gradedassignmentdetailsLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <strong>Review Status* </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">Pending</asp:ListItem>
                            <asp:ListItem>Approved</asp:ListItem>
                            <asp:ListItem>Rejected</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Panel ID="Panel1" runat="server" style="font-weight: 700">
                            R<strong>eject Reason*&nbsp; </strong>
                        </asp:Panel>
                    </td>
                    <td>
                        <asp:TextBox ID="rejectreasonTbx" runat="server" MaxLength="100" 
                            ontextchanged="rejectreasonTbx_TextChanged" Rows="5" Width="179px"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" 
                            runat="server" TargetControlID="rejectreasonTbx" 
                            WatermarkCssClass="watermarked" WatermarkText="Type Reject Reason here." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="rejectreasonTbx" 
                            ErrorMessage="Please enter a reason for Rejection" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        MC
                    </td>
                    <td>
                        <asp:Label ID="mcLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="modifyBtn" runat="server" CssClass="btnCSS" 
                            OnClick="modifyBtn_Click" 
                            onclientclick="return confirm('Confirm Modification?');" Text="Modify" />
                        <asp:Button ID="deleteBtn" runat="server" CssClass="btnCSS" 
                            OnClick="deleteBtn_Click" onclientclick="return confirm('Confirm Delete?');" 
                            Text="Delete" />
                        <asp:Label ID="resultLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
</asp:Content>
